import {defineStore} from 'pinia'

const configStore = defineStore('config', {
	state: () => ({
		// 导航模式
		NavigationMode: 'leftMenu',
		// 主题模式
		theme: '',
		mode: false,
		// 侧边栏模式
		sidebarMode: 'vertical',
		// 侧边栏折叠
		isCollapse: false,
		// 标签
		tags: [],
		// 标签路径
		tagPaths: [],
	}),
	actions: {},
	persist: {
		enabled: true,
		strategies: [{
			storage: localStorage,
		}],

	}
})
export default configStore